package com.oauth.common.exception;

import com.oauth.common.api.BaseResponse;
import com.secure.exception.ApiSecureException;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class GlobalExceptionAdvice {

    //@ExceptionHandler(ApiSecureException.class)
    public BaseResponse<Void> handleApiSecurityException(ApiSecureException e) {
        return BaseResponse.failure(e.getMessage());
    }
}
